package com.example.rubbish.gson;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class Result {
    @SerializedName("status")
    public int status;
    @SerializedName("garbage_info")
    public List<GarbageInfo> GarbageInfoList;

    public int getStatus() {
        return status;
    }

    public GarbageInfo getGarbageInfo() {
        if(GarbageInfoList.get(0)!=null){
            return GarbageInfoList.get(0);
        }
        return null;
    }
}
